﻿using Framework.Define;
using Framework.Singleton;

namespace Framework.Manager
{
    public class ManagerBase<T> : SingletonMonoBehaviour<T>
        where T : ManagerBase<T>
    {

        /// <summary>单例路径</summary>
        public static string SingletonPath
        {
            get { return FrameworkDefine.ManagerRootPath; }
        }

        /// <summary>ManagerBase初始化</summary>
        public void Init()
        {
            OnInit();
        }

        protected virtual void OnInit()
        {
        }
    }
}